# Contributor: Taner Tas <taner76@gmail.com>
# Maintainer: Taner Tas <taner76@gmail.com>
pkgname=gstreamer-vaapi
pkgver=1.16.2
pkgrel=2
pkgdesc="GStreamer streaming media framework VA API plug-ins"
url="https://gstreamer.freedesktop.org/"
arch="all"
license="LGPL-2.1-or-later"
makedepends="glib-dev gst-plugins-bad-dev libva-dev libxrandr-dev meson"
source="https://gstreamer.freedesktop.org/src/gstreamer-vaapi/gstreamer-vaapi-$pkgver.tar.xz"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		. output
	ninja -C output
}

check() {
	meson test -C output --print-errorlogs
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="61554b5496dca595fa6e278a5634112e225784e9f0a7e731800fd04b395ba4e11dc467b8d074cb8cfed182fa9b9511c104192aecbba3ac755a4c32372061ac9f  gstreamer-vaapi-1.16.2.tar.xz"
